"use client";

import { LinkBase } from "./LinkBase";
import { useT } from "../../../i18n/client";

export const Link = ({
  href,
  children,
  className,
}: {
  href: string;
  children: React.ReactNode;
  className?: string;
}) => {
  const { i18n } = useT();
  return (
    <LinkBase lng={i18n.resolvedLanguage || "en"} href={href} className={className}>
      {children}
    </LinkBase>
  );
};
